﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Material.aspx.cs" Inherits="Admin_Material" Title="Admin ~ Material" %>



<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<%@ Register src="../Usercontrols/Menu2.ascx" tagname="Menu2" tagprefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                                                                               
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                            <td class="adminHeading " align="left">MATERIAL</td>
                                                <td align="left"><asp:Label ID="lblMessage" runat="server" CssClass="messageLabel"></asp:Label> </td>
                                                 <td align="right" >
                                                    <asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label>
                                                            </td> 
                                            </tr>
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                                 <tr id="trMaterialTextBox" runat="server" >
                                    <td>
                                        <table style="width: 879px" >
                                            <tr class="altanateAshBkg" id="trUserCode" runat="server" visible="false" >
                                    <td class='label' style="width: 120px">MaterialId</td>
                                    <td style="width: 801px"><asp:TextBox ID="txtMaterialId" runat="server" cssclass='textBox' Width='150px' 
                                            MaxLength="50"></asp:TextBox></td>
                                </tr> 
                                
                                <tr class="ashBkg">
                                    <td class='label' style="width: 120px; height: 25px;">Name</td>
                                    <td style="height: 25px; width: 801px;">
                                        <asp:TextBox ID="txtMaterialName" runat="server"  
                                            cssclass='textBox' Width='200px' MaxLength="300" Height="20px"></asp:TextBox></td>
                                </tr> 
                                
                                <tr class="altanateAshBkg">
                                    <td class='label' style="width: 120px; height: 25px;">Source</td>
                                    <td style="height: 25px; width: 801px;"><asp:TextBox ID="txtSource" runat="server" 
                                            cssclass='textBox' Width='600px' MaxLength="300" Height="30px" 
                                            TextMode="MultiLine"></asp:TextBox></td>
                                </tr> 
                                
                                <tr class="ashBkg">
                                    <td class='label' style="width: 120px; height: 25px;">Handling history</td>
                                    <td style="height: 25px; width: 801px;"><asp:TextBox ID="txtHandlinghistory" runat="server" 
                                            cssclass='textBox' Width='600px' MaxLength="300" Height="50px" 
                                            TextMode="MultiLine"></asp:TextBox></td>
                                </tr> 
                                
                                <tr class="altanateAshBkg " align="left" >
                                    <td class='label' colspan="2" align="left" >
                                        <table >
                                        
                                            <tr align="left" >
                                                <td class="label">Class</td>
                                                <td><asp:DropDownList ID="ddlClass" runat="server" CssClass="dropdownlist"  AutoPostBack="True"></asp:DropDownList> </td>
                                                
                                                <td style="width: 120px"> 
                                                    <asp:CheckBox ID="chkAddClass" runat="server" CssClass="radioButton" 
                                                        Text="Add New Class" AutoPostBack="True" 
                                                        oncheckedchanged="chkAddClass_CheckedChanged" BorderStyle="None" 
                                                        Font-Bold="False" Font-Italic="False" TextAlign="Left" />
                                                </td> 
                                                
                                                <td>
                                                    <table >
                                                        <tr Id="trAddClass" runat="server" visible="false">
                                                            <td>
                                                             <table>
                                                                 <tr>
                                                                    <td class="label"> &nbsp;Class</td>
                                                                    <td><asp:TextBox ID="txtAddClass" runat="server" Width="80px" CssClass="textBox"></asp:TextBox> </td>
                                                                    <td align="right" >
                                                                        <asp:Button ID="btnAddClass" runat="server" CssClass="button" 
                                                                            onclick="btnAddClass_Click" Text="Add Class" />
                                                                    </td> 
                                                                </tr>
                                                            </table>
                                                            </td>                                   
                                                        </tr>   
                                                    </table>
                                                </td>                                                                                             
                                            </tr> 
                                            
                                        </table>                        
                                    </td>
                                </tr> 
                                                                                            
                                <tr class="ashBkg ">
                                    <td>
                                        
                                        <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/btnSave.jpg" 
                                            onclick="btnSave_Click1" />
                                        
                                    </td>
                                    <td><asp:Button ID="btnPreviousMaterials" runat="server" CssClass="button" 
                                            onclick="btnPreviousMaterials_Click" Text="Previous Materials" /> </td>
                                </tr>
                                
                                        
                                        </table>
                                    </td>
                                </tr>   
                                
                            
                               
                                <tr id="trMaterialDg" runat="server">
                                    <td align="left" style="padding-left:5px;" colspan='2'>
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgMaterial" 
                                            runat="server" onrowediting="dgMaterial_RowEditing" 
                                            onpageindexchanging="dgMaterial_PageIndexChanging">
                                            <Columns>      
                                         <%--   <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                            
                                                <asp:BoundField  DataField="id" HeaderText="id"/>
                                                <asp:BoundField  DataField="name" HeaderText="Name" />
                                                <asp:BoundField  DataField="class" HeaderText="Class" />
                                                <asp:BoundField  DataField="source" HeaderText="Source" />
                                                <asp:BoundField  DataField="handlinghistory" HeaderText="Handling History"/>
                                                                                             
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                             </tr>  
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table> 

   

</asp:Content>

